#include <bits/stdc++.h>
using namespace std;
int qmi(int x, int n,int mod)
{
    int sum = 1;
    x %= mod;
    while (n>0)
    {
        if (n & 1)
        {
            sum = sum * x %mod;
        }

        x *= x;
        x %= mod;
        n /= 2;
    }
    return sum%mod;
}
int main()
{
    cout << qmi(2, 2) << endl;
    return 0;
}